
public class PlaneModel {
	
	private long planeModelID;
	private String model;
	private int numRows;
	private int numCols;
	
	private boolean idSet = false;
	
	public PlaneModel(String model) {
		this.model = model;
	}
	
	public PlaneModel(String model, int numRows, int numCols) {
		this(model);
		this.numCols = numCols;
		this.numRows = numRows;
	}
	
	public void setPlaneModelID(long planeModelID) {
		this.planeModelID = planeModelID;
		idSet = true;
	}
	
	public long getPlaneModelID() {
		return planeModelID;
	}
	
	public void setModel(String model) {
		this.model = model;
	}
	
	public String getModel() {
		return model;
	}
	
	public void setNumRows(int numRows) {
		this.numRows = numRows;
	}
	
	public int getNumRows() {
		return numRows;
	}
	
	public void setNumCols(int numCols) {
		this.numCols = numCols;
	}
	
	public int getNumCols() {
		return numCols;
	}
	
	public boolean isIdSet() {
		
		return idSet;
	}
	
	
	@Override
	public boolean equals(Object pm) {
		if (pm instanceof PlaneModel) {
			PlaneModel pmOther = (PlaneModel)pm;
			return pmOther.model.equals(model);
		}
		return false;
	}

    @Override
    public int hashCode() {
        return model.hashCode();
    }

}

